package common;

import java.util.ArrayList;

public class Group {

	public Key key;
	
	public String name;
	public ArrayList<User> users;

	public Group(String name)
	{
		this.name = name;
	}
	
	public boolean joinGroup(User usr)
	{
		users.add(usr);
		return true;
	}
	
	public boolean leaveGroup(User usr)
	{
		users.remove(usr);
		return true;
	}
}
